home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: seebs@solutions.solon.com (Peter Seebach)
- Newsgroups: comp.lang.c
- Subject: Re: Can a function return a array of pointers? a.s.a.p.
- Date: 21 Apr 1996 02:52:14 -0500
- Organization: Usenet Fact Police (Undercover)
- Message-ID: <4lcpfe$sl2@solutions.solon.com>
- References: <4lalvn$536@badger.wmin.ac.uk> <4lc29kINNdkd@keats.ugrad.cs.ubc.ca>
- Reply-To: seebs@solon.com
- NNTP-Posting-Host: solutions.solon.com
-
- In article <4lc29kINNdkd@keats.ugrad.cs.ubc.ca>,
- Kazimir Kylheku <c2a192@ugrad.cs.ubc.ca> wrote:
- > static char readcodes(int arg)[3]
- > { /* bogus function definition for returning an array of 3 char */ }
-
- >As above. And no compiler for the C language will take it.
-
- Not entirely true; a diagnostic must be emitted, but the compiler is allowed
- to accept the code if it wants to.
-
- Thus the complete irrelevance of the name "conforming" as applied to code;
- it means only that at least one compiler accepts the code, and the code
- may contain syntax errors, as long as at least one conforming compiler
- accepts it. (Of course, to be conforming, it must emit at least
- a warning.)
-
- -s
- --
- Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
- C/Unix wizard -- C/Unix questions? Send mail for help. No, really!
- Unsolicited email is not welcome, and will be billed for at consulting rates.
- The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
-